package demo04ArrayListLinkedList;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:咭咭熊
 * Date:2021 - 09 - 14
 * Time:18:33
 */
public class Test {
    public static void main3(String[] args) {
        double h = 100;
        double sum = 0.0;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for (int i = 0; i < n; i++) {
            sum += h;
            h = h / 2.0;
            sum += h;
        }
        System.out.println(String.format("%.2f,%.2f",sum - h,h));
    }
    public static void main2(String[] args) {
        String a = "1";
        String b = "1";
        String c = b;
        String h = new String("1");
        System.out.println(a == b);//t
        System.out.println(a == c);//t
        System.out.println(b == c);//t
        System.out.println(a == h);//f

    }

    public static void main(String[] args) {
        int n = 0;
        while(n ++ <= 2){
        }
        System.out.println((n >> 2));
    }
    public static void main1(String[] args) {
        int i = 12;
        System.out.println(i += i -= i *= i);
        //i *=i 144   += 24  -= -120
    }


}
